package com.hlw.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import com.hlw.entity.Menu;
import com.hlw.entity.User;
import com.baomidou.mybatisplus.mapper.BaseMapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Mht
 * @since 2020-05-17
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {
	  User findByName(@Param("loginname")String loginname);
	
	  @Select("select * from sys_user")
	  List<User> getUser(); 
	  public Integer updateStatus(@Param("id")Integer id,@Param("status")Integer status);
	
	  User checkNameAndPwd(@Param("loginname")String loginname,@Param("password")String pwd);
	 
	  
	  public Integer updatePwd(@Param("loginname")String loginname,@Param("password")String password);
}
